# encoding: utf-8
#
# Copyright 2011, Google Inc. All Rights Reserved.

import os, logging, re

from google.appengine.dist import use_library

from google.appengine.ext import webapp, db
from google.appengine.ext.webapp.util import run_wsgi_app
from django.utils import simplejson as json
from google.appengine.ext.webapp import template

# import common methods, classes
from py import common

# register template filters
webapp.template.register_template_library('py.common.templatefilters')

# determine path to templates and blocks
templatePath = os.path.join(os.path.dirname(__file__), '..', 'admin')

class Admin(webapp.RequestHandler):
	def get(self):
		template_path = os.path.join(templatePath,"index.html")
		self.response.out.write(template.render(template_path,{ }))

application = webapp.WSGIApplication(
	[
		(r'/admin/', Admin)
	],debug=True)

def main():
  run_wsgi_app(application)

if __name__ == "__main__":
  main()

